Component({
  options: {
    addGlobalClass: true,
  },
  properties: {
    isAllSelected: {
      type: Boolean,
      value: false,
    },
    isDisabled: {
      type: Boolean,
      value: false,
    },
    totalAmount: {
      type: String,
      value: "0.00",
    },
    totalDiscountAmount: {
      type: Number,
      value: 0,
    },
    bottomHeight: {
      type: Number,
      value: 100,
    },
    fixed: Boolean,
  },
  data: {},
  methods: {
    handleSelectAll() {
      this.triggerEvent('handleSelectAll');
    },

    handleToSettle() {
      if (this.properties.isDisabled) return;
      this.triggerEvent('handleToSettle');
    },
  },
});
